﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace MyProject {

	/// <summary>
	/// 地址表
	/// </summary>
	[Table(Name = "address", DisableSyncStructure = true)]
	public partial class Address {

		[Column(Name = "id", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 地址
		/// </summary>
		[Column(Name = "a_address")]
		public string? AAddress { get; set; }

		/// <summary>
		/// 详细地址
		/// </summary>
		[Column(Name = "as_address")]
		public string? AsAddress { get; set; }

		[Column(Name = "create_time", DbType = "datetime", ServerTime = DateTimeKind.Local,CanUpdate =false)]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 是否是默认1是默认0是非默认
		/// </summary>
		[Column(Name = "is_default", DbType = "tinyint(4)")]
		public sbyte? IsDefault { get; set; }

		/// <summary>
		/// 地址名称
		/// </summary>
		[Column(Name = "name")]
		public string? Name { get; set; }

		/// <summary>
		/// 手机号
		/// </summary>
		[Column(Name = "phone")]
		public string? Phone { get; set; }

		[Column(Name = "update_time", DbType = "datetime",ServerTime = DateTimeKind.Local)]
		public DateTime? UpdateTime { get; set; }

		/// <summary>
		/// 用户id
		/// </summary>
		[Column(Name = "user_id")]
		public int? UserId { get; set; }

	}

}
